import Taro, { getCurrentInstance } from '@tarojs/taro'
import { View, WebView } from '@tarojs/components';
import React, { useState, useEffect } from 'react';

function WeWebview() {
  const [url, setUrl] = useState('')
  useEffect(() => {
    setUrl(getCurrentInstance().router.params.url)
  }, [])
  return <View className='webview'>
    <WebView src={url} />
  </View>
}
export default WeWebview